package personal.zq.swagger2demo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@Api(value = "test")
public class TestController {

    @ApiOperation(value = "测试")
    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }

}
